<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>data数据对象</title>
</head>
<body>

    <div class="app">
        {{message}}
        <h2>
            {{school.name}} {{school.mobile}}
        </h2>
        <ul>
            <li>{{campas[0]}}</li>
            <li>{{campas[1]}}</li>
            <li>{{campas[2]}}</li>
        </ul>
    </div>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>

<script>
    var app = new Vue({
        el:"div",
        data:{
            message:"你好",
            school:{
                name:"黑马程序员",
                mobile:"2345442"
            },
            campas:["北京校区","广州校区","上海校区"]
        }
    })
</script>
</body>
</html>